home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13529 < prev    next >
Encoding:
Text File  |  1996-08-05  |  885 b   |  27 lines

  1. Path: news2.ios.com!usenet
  2. From: Keith Boruff <kboruff@village.ios.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Need help with an array of pointers
  5. Date: Tue, 26 Mar 1996 06:14:07 -0800
  6. Organization: Internet Online Services
  7. Message-ID: <3157FBAF.32A3@village.ios.com>
  8. NNTP-Posting-Host: ppp-1.ts-3.nyc.idt.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win16; I)
  13.  
  14. Suppose I have an array of pointers:
  15.  
  16. char *WordPtr[] = {"Jack", "Joe", "Bob"};
  17.  
  18. How do I print the address value of each pointer element (i.e., the 
  19. address that each pointer points to)? The only addresses I seem to be 
  20. able to print are the addresses of the array elements themselves.
  21.  
  22. I would appreciate any help on this subject. An array of pointers is a 
  23. confusing topic to me and I could use all the help I can get.
  24.  
  25. Keith Boruff
  26. Long Island, NY
  27.